package cn.itcast.bos.service;

import java.util.Date;
import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import cn.itcast.bos.domain.page.PageBean;
import cn.itcast.bos.domain.take_delivery.Promotion;
import cn.itcast.crm.domain.Customer;

public interface PromotionService {

	void save(Promotion model);

	Page<Promotion> findPageData(PageRequest pageRequest);

	// WebService方法，获取宣传活动数据
	//已经关联到指定定区的客户列表
	@Path("/findPageData")
	@GET
	@Produces({"application/xml","application/json"})
	@Consumes({"application/xml","application/json"})
	public PageBean<Promotion> findPageData(@QueryParam("page") 
	int page,@QueryParam("rows") int rows); 
	
	
	/**
	 * 
	 * @param page
	 * @param rows
	 * @return
	 */
	@Path("/findById/{id}")
	@GET
	@Produces({"application/xml","application/json"})
	@Consumes({"application/xml","application/json"})
	public Promotion findById(@PathParam("id") Integer id);

	void updateStatus(Date date);  
	
}








